package org.jeecg.modules.demo.drfStudent.service.impl;




import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.drfStudent.entity.DrfStudent;
import org.jeecg.modules.demo.drfStudent.mapper.DrfStudentMapper;
import org.jeecg.modules.demo.drfStudent.service.IDrfStudentService;

/**
 * @Description: 学生表
 * @Author: jeecg-boot
 * @Date:   2025-10-02
 * @Version: V1.0
 */
@Service
public class DrfStudentServiceImpl extends ServiceImpl<DrfStudentMapper, DrfStudent> implements IDrfStudentService {

    @Override
    public DrfStudent getByUserId(String studentId) {
        DrfStudent student = this.baseMapper.selectOne(new QueryWrapper<DrfStudent>().eq("user_id", studentId));
        return student;
    }
}
